import instance from '@/util/requestMethods'
import {
    ADDHELP,
    GETALLHELP,
    HELPHIM,
    GETMYHELPS,
    UPDATEHELPS,
    FINISHHELP,
    DELETEHELP,
    MYHELP,
    MYHELP1,
    CANCELHELP
} from '@/services/api'
const header={}
//此模块用于处理所有有关用户信息的
export async function addHelp(params){
    return instance.post(ADDHELP,params,header)
}

export async function getAllHelp(params){
    return instance.get(GETALLHELP,params,header)
}

export async function helpHim(params){
    return instance.post(HELPHIM,params,header)
}

export async function getMyHelps(params){
    return instance.post(GETMYHELPS,params,header)
}

export async function updateHelps(params){
    return instance.post(UPDATEHELPS,params,header)
}

export async function finishHelp(params){
    return instance.post(FINISHHELP,params,header)
}

export async function deleteHelp(params){
    return instance.post(DELETEHELP,params,header)
}

export async function Myhelp(params){
    return instance.post(MYHELP,params,header)
}

export async function Myhelp1(params){
    return instance.post(MYHELP1,params,header)
}

export async function cancelHelp(params){
    return instance.post(CANCELHELP,params,header)
}